/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package program.utilities;

import java.awt.Image;
import java.awt.image.BufferedImage;

/**
 * Utility-class to convert image to buffered-image or buffered-image to image
 *
 * Responsible: Bernhard
 */
public class ImageUtilities {

    public static BufferedImage convertImageToBufferdImage(Image src) {
        if (src instanceof BufferedImage) {
            return (BufferedImage) src;
        } else {
            return null;
        }
    }

    public static Image convertBufferedImageToImage(BufferedImage src) {
        return (Image) src;
    }
}
